#ifndef _CLIENTMGR_H_
#define _CLIENTMGR_H_

#include "../Common/AllTool.h"
#include "UserMgr.h"
#include "DiskMgr.h"
#include "ClientDiskOp.h"

enum CLIENT_STATE
{
	CTS_CONNECTED = 0	,
	CTS_VERSIONOK		,
	CTS_LOGINED			,
	CTS_DISKOPENED		,
	CTS_DEAD			
};


struct CLIENT_INFO
{
	YYNet Net;
	enum CLIENT_STATE State;
	tstring	tsUsername;
	FsMgr	*pfmDisk;
};

int StartClientMgr();
int StopClientMgr();
int GetClientInfo(tstring &tsRet);
#endif